<template>
  <div class="container">
    <div class="left">
      <span v-if="priceType === 1 || priceType === 0 || priceType === 3">
        总计：￥{{ total }}元
      </span>
      <span v-else-if="priceType === 2 ">
        总计：{{ total }}积分
      </span>
    </div>
    <div class="rightBtn" @click="submit">提交订单</div>
  </div>
</template>
<script>
export default {

  props: {
    total: {
      type: String,
      default: '0.00'
    },
    priceType: {
      type: Number,
      default: 0
    }
  },
  methods: {
    submit() {
      this.$emit('submit')
    }
  }
}
</script>
<style lang='' scoped>
</style>
